<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>User id</title>
</head>
<body>
    {% if user %}
        hello {{ user.user_name }}
    {% else %}
        no this user
    {% endif %}
</body>
</html>